const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.userInfo?.avatar || '',
  name: state => state.user.userInfo?.username || '',
  userInfo: state => state.user.userInfo || {},
  isLoggedIn: state => state.user.isLoggedIn,
  isStoreOwner: state => state.user.userInfo?.sign === 1
}
export default getters
